<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title><?php echo $title;?></title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />

	<link href="<?php echo  base_url();?>css/all.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo  base_url();?>css/lhgcalendar.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo  base_url();?>css/demo.css" rel="stylesheet" type="text/css" />
    <link rel='stylesheet' href='<?php echo base_url();?>css/calendar.css' title='calendar'>
	<script language="javascript" src="<?php echo base_url();?>js/jquery.js"></script>
	<script language="javascript" src="<?php echo base_url();?>js/jquery.modal.js"></script>
	<script language="javascript" src="<?php echo base_url();?>js/lhgcore.min.js"></script>
    <script language="javascript" src="<?php echo base_url();?>js/lhgcalendar.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>js/swfobject.js"></script>
    <script language="javascript" src="<?php echo base_url();?>js/calendar.js"></script>
</head>
<body>
<div id="main">
	<div id="header">
		<ul id="top-navigation">
			    <li <?php if(isset($module)){if($module=='main'&&($template=='index')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>main/index">首页</a></span></span></li>
			    
<?php if($user[0]->role==0){?>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='index'||$template=='model_edit'||$template=='model_add'||$template=='model_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/index">型号管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='category'||$template=='category_edit'||$template=='category_add'||$template=='category_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/category">类别管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='version'||$template=='version_edit'||$template=='version_add'||$template=='version_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/version">版本管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='complete'||$template=='complete_edit'||$template=='complete_add'||$template=='complete_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/complete">成套管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='company'||$template=='company_edit'||$template=='company_add'||$template=='company_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/company">发放单位管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='receive'||$template=='receive_edit'||$template=='receive_add'||$template=='receive_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/receive">资料接收</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='send'||$template=='send_edit'||$template=='send_add'||$template=='send_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/send">资料发放</a></span></span></li>
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='update_historys')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/update_historys">资料更新</a></span></span></li>				
				<!-- <li <?php if(isset($module)){if($module=='administrator'&&($template=='inventory')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/inventory">资料库存</a></span></span></li> -->
				<li <?php if(isset($module)){if($module=='administrator'&&($template=='admin'||$template=='admin_edit'||$template=='admin_add')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/admin">用户管理</a></span></span></li>				
			    <li <?php if(isset($module)){if($module=='excel'){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>excel/import">数据备份</a></span></span></li>
			<?php }else{?>

			<?php }?>
			<li <?php if(isset($module)){if($module=='chart'){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>chart/index">资料统计</a></span></span></li>
			    
			    <li <?php if(isset($module)){if($module=='administrator'&&($template=='admin_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>administrator/admin_detail/<?php echo $user[0]->admin_id?>"><?php echo $user[0]->name;?></a></span></span></li>		
			   	    
			    <li><span><span><a href="<?php echo  base_url();?>main/logout">退出</a></span></span></li>
		</ul>
	</div>
	<div id="middle">
